# 列表推导式:通过遍历列表拿到元素,
# 并且将拿到的元素做一定处理得到一个新的列表
squares = [value ** 2 for value in range(1, 21)]
print(squares)

list1 = [4, 9, 2, 1]
third_powers = [val * 3 for val in list1]
print(third_powers)
